package com.hedl.classroom.feignclient;

import com.hedl.classroom.base.exception.CommonResult;
import com.hedl.classroom.base.model.RestResponse;
import com.hedl.classroom.feignclient.impl.MediaServiceClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Big Watermelon
 * @description
 * @date 2023/12/15/21:39
 */
@FeignClient(value = "media-api",fallbackFactory = MediaServiceClientFallbackFactory.class)
public interface MediaServiceClient {

    @GetMapping("/media/open/preview/{mediaId}")
    public RestResponse<String> getPlayUrlByMediaId(@PathVariable("mediaId") String mediaId);
}
